﻿using System;

class ForestRoad
{
    static void Main()
    {
        //C# Fundamentals 2011/2012 Part 1 - Sample Exam

        int number = int.Parse(Console.ReadLine());
        int lines = number + number - 1;
        int rightDots = number - 1;
        int leftDots = 0;

        //print the upper part of the pic

        for (int i = 0; i < number; i++)
        {
            Console.Write(new string('.', leftDots));
            Console.Write('*');
            Console.Write(new string('.',rightDots));
            Console.WriteLine();
            leftDots++;
            rightDots--;
        }

        //print the bottom part of the pic
        leftDots = number - 2;
        rightDots = 1;
        for (int i = 1; i < number; i++)
        {
            Console.Write(new string('.', leftDots));
            Console.Write('*');
            Console.Write(new string('.', rightDots));
            Console.WriteLine();
            leftDots--;
            rightDots++;
        }
    }
}

